package cn.lizemin.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lzm
 * @version 1.0
 * @description: 订单服务接口
 * @date 2022/2/23 15:35
 */
@RestController
public class OrderController {
    private static final Logger log = LoggerFactory.getLogger(OrderController.class);

    /**提供服务的端口号*/
    @Value("${server.port}")
    private Integer port ;

    @GetMapping("order")
    public String demo(){
        log.info("order demo .....");
        return "order demo ok!!!,当前提供服务端口为: " + port;
    }

}
